<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<%@ taglib prefix="sales" tagdir="/WEB-INF/tags/sales"%>
<html>
	<title><fmt:message key="promotion.title"/></title>
	<body>
		<c:choose>
			<c:when test="${sc.totalCount != 0}">		
				<form method="get">
					 <div class="promotion_info">
					 	<div class="top">
					 		<h3><fmt:message key="contentList.font.size"/>：
					 			<span class="f_small <c:if test="${empty listFontSize or listFontSize == 1}">curr</c:if>" onclick="changeContentListStyle(1,this);"><fmt:message key="contentList.font.size.small"/></span>
					 			<span class="f_big <c:if test="${listFontSize == 2}">curr</c:if>" onclick="changeContentListStyle(2,this);"><fmt:message key="contentList.font.size.big"/></span>
					 			<input type="hidden" id="listFontSize" name="listFontSize" value="${listFontSize}"/>
					 			<span class="close" id="slideAll"><fmt:message key="contentList.slideUpDown"/></span> 
					 		</h3>
					 	</div>
					 	<c:choose>
					 		<c:when test="${empty listFontSize or listFontSize == 1}">
					 			<c:set var="fontSizeClass"  value="c_f_small"/>
					 		</c:when>
					 		<c:otherwise>
					 			<c:set var="fontSizeClass"  value="c_f_big"/>
					 		</c:otherwise>
					 	</c:choose>
					 	<div class="content ${fontSizeClass}" id="contentList">
					 		<c:forEach items="${promoRuleList}" var="promoRule" varStatus="promoRuleStatus">
					 			<%@ include file="include/promoRuleItem.jspf"%>
					 		</c:forEach>
					 	</div>
					</div>		
				</form>
			</c:when>
			<c:otherwise>
				<div class="msg">
					<h3><fmt:message key="promoRuleList.noActiveRule.msg.title"/></h3>
					<div class="recommend_info">
						<dl>
							<dt><fmt:message key="promoRuleList.noActiveRule.msg.advice"/>：</dt>
							<dd><fmt:message key="promoRuleList.noActiveRule.msg.advice1"/></dd>
							<dd><fmt:message key="promoRuleList.noActiveRule.msg.advice2"/></dd>
						</dl>
					</div>
				</div>
			</c:otherwise>
		</c:choose>		
		<script type="text/javascript"	src="${ctxPath}/scripts/probiz/content/contentList.js" defer></script>	
		<script type="text/javascript">
		$j(document).ready(function () {
		});	
		</script>	
	</body>
</html>
